import Request from "../../utils/Request";
export class ProductService {
    static getCategories(params) {
        return Request.get(Request.getApi().categoryList, params);
    }
    static createCategory(params) {
        return Request.post(Request.getApi().categoryAdd, params);
    }
    static topCategories() {
        return Request.get(Request.getApi().topCategories);
    }
    static add(params) {
        return Request.post(Request.getApi().productAdd, params);
    }
    static edit(params) {
        return Request.post(Request.getApi().productEdit, params);
    }
    static del(params) {
        return Request.get(Request.getApi().productDelete, params);
    }
    static list(params) {
        return Request.get(Request.getApi().productList, params);
    }
    static more(url, params) {
        return Request.get(url, params);
    }
}
